﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NutriLeaf.Web.Model;

namespace NutriLeaf.Web.Core.Recipe
{
    public interface IRecipeLike
    {
        void LikeRecipe(int recipeId, int userId, bool like, ref NutriLeafDBEntities context);

        void LikeRecipe(Model.Recipe recipe, User user, bool like, ref NutriLeafDBEntities context);

        void RemoveRecipeLike(RecipeLike like, ref NutriLeafDBEntities context);

        List<Model.Recipe> GetRecipeLikedByUser(int userId, ref NutriLeafDBEntities context);

        void UpdateRecipeLike(RecipeLike recipeLike, ref NutriLeafDBEntities context);
    }
}